<p class="lead-title">My Student Commendations</p>
<?if($commendations):?>
	<table class="table table-striped">
		<tr class="info">
			<td>Student Name</td>
			<td>Level</td>
			<td>Section & Adviser</td>
			<td></td>
		</tr>
		<?foreach ($commendations as $ck => $cv):?>
			<tr>
				<td><?=$cv->fullname;?></td>
				<td><?=$cv->level_desc;?></td>
				<td>
					<?=$cv->adviser;?><br>
					<?=$cv->section_name;?></td>
				<td>
					<div class="btn-group">
						<a href="#" data-reveal-id="message_<?=__link($cv->id);?>" class="btn btn-link btn-mini">Read <i class="fa fa-eye"></i></a>
						<!--<a href="<?=site_url('');?>" id="delete_commendations" class="btn btn-link btn-mini ajax-click">Delete<i class="fa fa-times"></i></a>-->
					</div>
					<div id="message_<?=__link($cv->id);?>" class="reveal-modal">
					  <p class="lead-title">Message</p>
					  <div class="panel"><p class="lead"><?=$cv->message;?></p></div>
					  <a class="close-reveal-modal">&#215;</a>
					</div>
				</td>
			</tr>
		<?endforeach;?>
	</table>
	<?=$links;?>
<?else:?>
	<div class="alert-box">Nothing Found.</div>
<?endif;?>
<script src="<?=script_url('custom/ajaxclick');?>" type="text/javascript"></script>